import request from '@/utils/request'

// 查询审核记录表列表
export function listApproveRecord (query) {
  return request({
    url: '/platform/approveRecord/list',
    method: 'get',
    params: query
  })
}

// 查询审核记录表详细
export function getApproveRecord (id) {
  return request({
    url: '/platform/approveRecord/' + id,
    method: 'get'
  })
}

// 新增审核记录表
export function addApproveRecord (data) {
  return request({
    url: '/platform/approveRecord',
    method: 'post',
    data: data
  })
}

// 修改审核记录表
export function updateApproveRecord (data) {
  return request({
    url: '/platform/approveRecord',
    method: 'put',
    data: data
  })
}

// 删除审核记录表
export function delApproveRecord (id) {
  return request({
    url: '/platform/approveRecord/' + id,
    method: 'delete'
  })
}


// 导出审核记录表
export function exportApproveRecord (query) {
  return request({
    url: '/platform/approveRecord/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/platform/approveRecord/getInitData/' + dictTypes,
    method: 'get'
  })
}
